<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="/WEB-INF/myfaces_core.tld" prefix="f" %>
<%@ taglib uri="/WEB-INF/myfaces_html.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/tomahawk.tld" prefix="t" %>
<%@ taglib uri="/WEB-INF/htmLib.tld" prefix="htm" %>

<%@include file="/pages/pageTop.jspf" %>

<f:view>
    <htm:div styleClass="pageTitle">
        <t:outputText 
            styleClass="label"
            value="Teacher's Dashboard" />
    </htm:div>
    
	<htm:div styleClass="formBlock">
		<h:form id="loginForm">             
		    <htm:div styleClass="standardBlock">
                <t:outputLabel
                    styleClass="label"
                    value="Teacher: #{mbUserBean.user.name}" />  
		    </htm:div>
		    
		    <htm:div styleClass="standardBlock">
		    	<t:dataTable 
		    		border="0"
		    		cellpadding="2" cellspacing="5"
		    		value="#{mbUserBean.notificationsModel}" var="notification"
		    		renderedIfEmpty="false">
		    		
		    		<t:column>
		    			<f:facet name="header">
		    				<t:outputText value="Thesis title" />
		    			</f:facet>
		    			
		    			<t:commandLink 
		    				value="#{notification.forThesis.title}"
		    				action="#{mbUserBean.actionReviewThesis}" />
		    		</t:column>
		    		
		    		<t:column>
		    			<f:facet name="header">
		    				<t:outputText value="Submit Date" />
		    			</f:facet>
		    			
		    			<t:outputText value="#{notification.forThesis.proposedOn}" />
		    		</t:column>
		    		
		    		<t:column>
		    			<f:facet name="header">
		    				<t:outputText value="Status" />
		    			</f:facet>
		    			
		    			<t:outputText value="#{notification.forThesis.status.label}" />
		    		</t:column>
		   		</t:dataTable>
		    </htm:div>              
		</h:form>
    </htm:div>
</f:view>
        
<%@include file="/pages/pageBottom.jspf" %>